package com.guavamail.smtp;

import java.io.InputStream;

import com.guavamail.smtp.auth.AuthenticationHandler;
import com.guavamail.smtp.auth.Credential;

public class SMTPContext {
	private SessionStatus sessionStatus;
	private SMTPServerConfig cfg;

	private InputStream inputStream;

	private Credential credential;

	private AuthenticationHandler authenticationHandler;

	public SMTPContext(SMTPServerConfig cfg, AuthenticationHandler authenticationHandler) {
		sessionStatus = new SessionStatus();
		this.cfg = cfg;
		this.authenticationHandler = authenticationHandler;
	}

	public SessionStatus getSessionStatus() {
		return sessionStatus;
	}

	public void setSessionStatus(SessionStatus sessionStatus) {
		this.sessionStatus = sessionStatus;
	}

	public SMTPServerConfig getSMTPServerConfig() {
		return cfg;
	}

	public InputStream getInputStream() {
		return inputStream;
	}

	public void setInputStream(InputStream inputStream) {
		this.inputStream = inputStream;
	}

	public Credential getCredential() {
		return credential;
	}

	public void setCredential(Credential credential) {
		this.credential = credential;
	}

	public AuthenticationHandler getAuthenticationHandler() {
		return authenticationHandler;
	}

	public void setAuthenticationHandler(AuthenticationHandler authenticationHandler) {
		this.authenticationHandler = authenticationHandler;
	}

}
